<h1><?php echo $this->translate('registration_title'); ?></h1>
<form action="<?php echo $this->action ?>" method="post" target="_self">
	<input type="hidden" name="registration[action]" value="save" />
	<table border="0" cellspacing="0" cellpadding="0" class="registration">
		<tr>
			<td><?php echo $this->translate('username'); ?>*</td>
			<td><?php echo $this->formText('registration[username]', $this->input->getUnescaped('username')) ?></td>
		</tr>
		<?php if(isset($this->errors['username'])): ?>
		<tr>
			<td></td>
			<td class="registration-error"><?php echo implode('<br />', $this->errors['username']); ?></td>
		</tr>
		<?php endif; ?>
		<tr>
			<td><?php echo $this->translate('password'); ?>*</td>
			<td><?php echo $this->formPassword('registration[password]', $this->input->getUnescaped('password')) ?></td>
		</tr>
		<?php if(isset($this->errors['password'])): ?>
		<tr>
			<td></td>
			<td class="registration-error"><?php echo implode('<br />', $this->errors['password']); ?></td>
		</tr>
		<?php endif; ?>
		<tr>
			<td><?php echo $this->translate('password_repeated'); ?>*</td>
			<td><?php echo $this->formPassword('registration[password_repeated]', $this->input->getUnescaped('password_repeated')) ?></td>
		</tr>
		<?php if(isset($this->errors['password_repeated'])): ?>
		<tr>
			<td></td>
			<td class="registration-error"><?php echo implode('<br />', $this->errors['password_repeated']); ?></td>
		</tr>
		<?php endif; ?>
		<tr>
			<td><?php echo $this->translate('firstname'); ?>*</td>
			<td><?php echo $this->formText('registration[firstname]', $this->input->getUnescaped('firstname')) ?></td>
		</tr>
		<?php if(isset($this->errors['firstname'])): ?>
		<tr>
			<td></td>
			<td class="registration-error"><?php echo implode('<br />', $this->errors['firstname']); ?></td>
		</tr>
		<?php endif; ?>
		<tr>
			<td><?php echo $this->translate('lastname'); ?>*</td>
			<td><?php echo $this->formText('registration[lastname]', $this->input->getUnescaped('lastname')) ?></td>
		</tr>
		<?php if(isset($this->errors['lastname'])): ?>
		<tr>
			<td></td>
			<td class="registration-error"><?php echo implode('<br />', $this->errors['lastname']); ?></td>
		</tr>
		<?php endif; ?>
		<tr>
			<td><?php echo $this->translate('email'); ?>*</td>
			<td><?php echo $this->formText('registration[email]', $this->input->getUnescaped('email')) ?></td>
		</tr>
		<?php if(isset($this->errors['email'])): ?>
		<tr>
			<td></td>
			<td class="registration-error"><?php echo implode('<br />', $this->errors['email']); ?></td>
		</tr>
		<?php endif; ?>
		<tr>
			<td></td>
			<td><input type="submit" value="<?php echo $this->translate('register'); ?>" /></td>
		</tr>
	</table>
</form>